#!/usr/bin/env python 
# -*- coding:utf-8 -*-
"""
@Time:2021/12/26 7:13 下午"
@Author:lydia_liu"
@File:main_page.py
@function:
"""
from time import sleep

from appium.webdriver.common.mobileby import MobileBy
from appium.webdriver.webdriver import WebDriver

from po_app_object.app_wechat_page.base.base import BasePage
from po_app_object.app_wechat_page.page.contentlist_page import ContentListPage


class MainPage(BasePage):
    content_element = (MobileBy.XPATH, '//*[@text="通讯录"]')
    def goto_contentlist(self):
        sleep(10)
        self.log_info("click content start...")
        self.find_click(*self.content_element)
        self.log_info('click content end')
        return ContentListPage(self.driver)